<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver MPU9250: mpu9250 magnetometer driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver MPU9250
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">MPU9250 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__mpu9250__magnetometer__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">mpu9250 magnetometer driver function<div class="ingroups"><a class="el" href="group__mpu9250__driver.html">mpu9250 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>mpu9250 magnetometer driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaf25efb8a583c0829cd9bad3f692e7043"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gaf25efb8a583c0829cd9bad3f692e7043">mpu9250_magnetometer_status1_t</a> { <a class="el" href="group__mpu9250__magnetometer__driver.html#ggaf25efb8a583c0829cd9bad3f692e7043adfb55754dd658b344657053d13743427">MPU9250_MAGNETOMETER_STATUS1_DRDY</a> = (1 &lt;&lt; 0)
, <a class="el" href="group__mpu9250__magnetometer__driver.html#ggaf25efb8a583c0829cd9bad3f692e7043ace54b633fd9ad258f13d49d2fe5d8d72">MPU9250_MAGNETOMETER_STATUS1_DOR</a> = (1 &lt;&lt; 1)
 }</td></tr>
<tr class="memdesc:gaf25efb8a583c0829cd9bad3f692e7043"><td class="mdescLeft">&#160;</td><td class="mdescRight">mpu9250 magnetometer status1 enumeration definition  <a href="group__mpu9250__magnetometer__driver.html#gaf25efb8a583c0829cd9bad3f692e7043">More...</a><br /></td></tr>
<tr class="separator:gaf25efb8a583c0829cd9bad3f692e7043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15ae01bcf3243b67110695ca92f39c3a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga15ae01bcf3243b67110695ca92f39c3a">mpu9250_magnetometer_status2_t</a> { <a class="el" href="group__mpu9250__magnetometer__driver.html#gga15ae01bcf3243b67110695ca92f39c3aae496e7185f498c8b2135267dbb216d20">MPU9250_MAGNETOMETER_STATUS2_HOFL</a> = (1 &lt;&lt; 3)
, <a class="el" href="group__mpu9250__magnetometer__driver.html#gga15ae01bcf3243b67110695ca92f39c3aa00d3d86806db7ee1adde5ba94b5329eb">MPU9250_MAGNETOMETER_STATUS2_BITM</a> = (1 &lt;&lt; 4)
 }</td></tr>
<tr class="memdesc:ga15ae01bcf3243b67110695ca92f39c3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">mpu9250 magnetometer status2 enumeration definition  <a href="group__mpu9250__magnetometer__driver.html#ga15ae01bcf3243b67110695ca92f39c3a">More...</a><br /></td></tr>
<tr class="separator:ga15ae01bcf3243b67110695ca92f39c3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96325b0b819243ccbbb2a6e00e798d33"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga96325b0b819243ccbbb2a6e00e798d33">mpu9250_magnetometer_mode_t</a> { <br />
&#160;&#160;<a class="el" href="group__mpu9250__magnetometer__driver.html#gga96325b0b819243ccbbb2a6e00e798d33a9a7744306e2ca4e8cec3b82eb8cbfaca">MPU9250_MAGNETOMETER_MODE_POWER_DOWN</a> = 0x00
, <a class="el" href="group__mpu9250__magnetometer__driver.html#gga96325b0b819243ccbbb2a6e00e798d33a8cb550255b964ba64c96ce5b2be7770b">MPU9250_MAGNETOMETER_MODE_SINGLE</a> = 0x01
, <a class="el" href="group__mpu9250__magnetometer__driver.html#gga96325b0b819243ccbbb2a6e00e798d33a3377a213a5444f94ab24e16e46fa59f9">MPU9250_MAGNETOMETER_MODE_CONTINUOUS1</a> = 0x02
, <a class="el" href="group__mpu9250__magnetometer__driver.html#gga96325b0b819243ccbbb2a6e00e798d33ab4ce45f8128199c7cacdd39c8b8a8cd9">MPU9250_MAGNETOMETER_MODE_CONTINUOUS2</a> = 0x06
, <br />
&#160;&#160;<a class="el" href="group__mpu9250__magnetometer__driver.html#gga96325b0b819243ccbbb2a6e00e798d33a6a8e96299a7dbd7d14b3766910d23089">MPU9250_MAGNETOMETER_MODE_EXT_TRIGGER</a> = 0x04
, <a class="el" href="group__mpu9250__magnetometer__driver.html#gga96325b0b819243ccbbb2a6e00e798d33a689e36d1c458fa70d38941ccabd2aefc">MPU9250_MAGNETOMETER_MODE_SELF_TEST</a> = 0x08
, <a class="el" href="group__mpu9250__magnetometer__driver.html#gga96325b0b819243ccbbb2a6e00e798d33ab176b40f3577ee979a317ce37a34004a">MPU9250_MAGNETOMETER_MODE_FUSE_ROM</a> = 0x0F
<br />
 }</td></tr>
<tr class="memdesc:ga96325b0b819243ccbbb2a6e00e798d33"><td class="mdescLeft">&#160;</td><td class="mdescRight">mpu9250 magnetometer mode enumeration definition  <a href="group__mpu9250__magnetometer__driver.html#ga96325b0b819243ccbbb2a6e00e798d33">More...</a><br /></td></tr>
<tr class="separator:ga96325b0b819243ccbbb2a6e00e798d33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0735dd84695bb69fc8c86da464446787"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga0735dd84695bb69fc8c86da464446787">mpu9250_magnetometer_bits_t</a> { <a class="el" href="group__mpu9250__magnetometer__driver.html#gga0735dd84695bb69fc8c86da464446787aaa0c3025497a0017bfd9f40406e7bbdc">MPU9250_MAGNETOMETER_BITS_14</a> = 0x00
, <a class="el" href="group__mpu9250__magnetometer__driver.html#gga0735dd84695bb69fc8c86da464446787a10eb45e0ae3df11d823b788c1ee67c9f">MPU9250_MAGNETOMETER_BITS_16</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga0735dd84695bb69fc8c86da464446787"><td class="mdescLeft">&#160;</td><td class="mdescRight">mpu9250 magnetometer bits enumeration definition  <a href="group__mpu9250__magnetometer__driver.html#ga0735dd84695bb69fc8c86da464446787">More...</a><br /></td></tr>
<tr class="separator:ga0735dd84695bb69fc8c86da464446787"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gade9506fadda07d03d00820dc13c14bc3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gade9506fadda07d03d00820dc13c14bc3">mpu9250_mag_init</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle)</td></tr>
<tr class="memdesc:gade9506fadda07d03d00820dc13c14bc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the magnetometer of mpu9250  <a href="group__mpu9250__magnetometer__driver.html#gade9506fadda07d03d00820dc13c14bc3">More...</a><br /></td></tr>
<tr class="separator:gade9506fadda07d03d00820dc13c14bc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadfaea459024eaec362f46be757f9a2c7"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gadfaea459024eaec362f46be757f9a2c7">mpu9250_mag_deinit</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle)</td></tr>
<tr class="memdesc:gadfaea459024eaec362f46be757f9a2c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer deinit  <a href="group__mpu9250__magnetometer__driver.html#gadfaea459024eaec362f46be757f9a2c7">More...</a><br /></td></tr>
<tr class="separator:gadfaea459024eaec362f46be757f9a2c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafe236e15933bffd2e9548d7945123008"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gafe236e15933bffd2e9548d7945123008">mpu9250_mag_read</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, int16_t mag_raw[3], float mag_ut[3])</td></tr>
<tr class="memdesc:gafe236e15933bffd2e9548d7945123008"><td class="mdescLeft">&#160;</td><td class="mdescRight">mag read the data  <a href="group__mpu9250__magnetometer__driver.html#gafe236e15933bffd2e9548d7945123008">More...</a><br /></td></tr>
<tr class="separator:gafe236e15933bffd2e9548d7945123008"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab4157961c9c4f85f85f3fdad74d25862"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gab4157961c9c4f85f85f3fdad74d25862">mpu9250_mag_get_info</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, uint8_t *info)</td></tr>
<tr class="memdesc:gab4157961c9c4f85f85f3fdad74d25862"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the information  <a href="group__mpu9250__magnetometer__driver.html#gab4157961c9c4f85f85f3fdad74d25862">More...</a><br /></td></tr>
<tr class="separator:gab4157961c9c4f85f85f3fdad74d25862"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga04b17cd4e0b7f7ad4ae5df0eba23f6d3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga04b17cd4e0b7f7ad4ae5df0eba23f6d3">mpu9250_mag_get_status1</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, uint8_t *status)</td></tr>
<tr class="memdesc:ga04b17cd4e0b7f7ad4ae5df0eba23f6d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the status1  <a href="group__mpu9250__magnetometer__driver.html#ga04b17cd4e0b7f7ad4ae5df0eba23f6d3">More...</a><br /></td></tr>
<tr class="separator:ga04b17cd4e0b7f7ad4ae5df0eba23f6d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0bf56067b23fe3db7e9a564bea77f25d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga0bf56067b23fe3db7e9a564bea77f25d">mpu9250_mag_get_status2</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, uint8_t *status)</td></tr>
<tr class="memdesc:ga0bf56067b23fe3db7e9a564bea77f25d"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the status2  <a href="group__mpu9250__magnetometer__driver.html#ga0bf56067b23fe3db7e9a564bea77f25d">More...</a><br /></td></tr>
<tr class="separator:ga0bf56067b23fe3db7e9a564bea77f25d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1087c4f8297965f6286c4597d3435261"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga1087c4f8297965f6286c4597d3435261">mpu9250_mag_set_mode</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__magnetometer__driver.html#ga96325b0b819243ccbbb2a6e00e798d33">mpu9250_magnetometer_mode_t</a> mode)</td></tr>
<tr class="memdesc:ga1087c4f8297965f6286c4597d3435261"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer set the mode  <a href="group__mpu9250__magnetometer__driver.html#ga1087c4f8297965f6286c4597d3435261">More...</a><br /></td></tr>
<tr class="separator:ga1087c4f8297965f6286c4597d3435261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2ed2dde488c69352119493594b8ad2d2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga2ed2dde488c69352119493594b8ad2d2">mpu9250_mag_get_mode</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__magnetometer__driver.html#ga96325b0b819243ccbbb2a6e00e798d33">mpu9250_magnetometer_mode_t</a> *mode)</td></tr>
<tr class="memdesc:ga2ed2dde488c69352119493594b8ad2d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the mode  <a href="group__mpu9250__magnetometer__driver.html#ga2ed2dde488c69352119493594b8ad2d2">More...</a><br /></td></tr>
<tr class="separator:ga2ed2dde488c69352119493594b8ad2d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8b71a9307bd46ebb45ca224e36064790"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga8b71a9307bd46ebb45ca224e36064790">mpu9250_mag_set_bits</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__magnetometer__driver.html#ga0735dd84695bb69fc8c86da464446787">mpu9250_magnetometer_bits_t</a> bits)</td></tr>
<tr class="memdesc:ga8b71a9307bd46ebb45ca224e36064790"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer set the bits  <a href="group__mpu9250__magnetometer__driver.html#ga8b71a9307bd46ebb45ca224e36064790">More...</a><br /></td></tr>
<tr class="separator:ga8b71a9307bd46ebb45ca224e36064790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga785f16eaac2033bd7879bdfdaba43903"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga785f16eaac2033bd7879bdfdaba43903">mpu9250_mag_get_bits</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__magnetometer__driver.html#ga0735dd84695bb69fc8c86da464446787">mpu9250_magnetometer_bits_t</a> *bits)</td></tr>
<tr class="memdesc:ga785f16eaac2033bd7879bdfdaba43903"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the bits  <a href="group__mpu9250__magnetometer__driver.html#ga785f16eaac2033bd7879bdfdaba43903">More...</a><br /></td></tr>
<tr class="separator:ga785f16eaac2033bd7879bdfdaba43903"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaab0426a6cea05ed0454aa52a5f8abe00"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gaab0426a6cea05ed0454aa52a5f8abe00">mpu9250_mag_set_reset</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a> enable)</td></tr>
<tr class="memdesc:gaab0426a6cea05ed0454aa52a5f8abe00"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer enable or disable reset  <a href="group__mpu9250__magnetometer__driver.html#gaab0426a6cea05ed0454aa52a5f8abe00">More...</a><br /></td></tr>
<tr class="separator:gaab0426a6cea05ed0454aa52a5f8abe00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca812f5efc9f4dc62d1c0fab8a3134b4"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gaca812f5efc9f4dc62d1c0fab8a3134b4">mpu9250_mag_get_reset</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a> *enable)</td></tr>
<tr class="memdesc:gaca812f5efc9f4dc62d1c0fab8a3134b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the reset status  <a href="group__mpu9250__magnetometer__driver.html#gaca812f5efc9f4dc62d1c0fab8a3134b4">More...</a><br /></td></tr>
<tr class="separator:gaca812f5efc9f4dc62d1c0fab8a3134b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf14b2025551ce8ea46c8e61ee987623a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gaf14b2025551ce8ea46c8e61ee987623a">mpu9250_mag_set_self_test</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a> enable)</td></tr>
<tr class="memdesc:gaf14b2025551ce8ea46c8e61ee987623a"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer enable or disable self test  <a href="group__mpu9250__magnetometer__driver.html#gaf14b2025551ce8ea46c8e61ee987623a">More...</a><br /></td></tr>
<tr class="separator:gaf14b2025551ce8ea46c8e61ee987623a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga70c36f1ed535ef0a612edb33a8bc282d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga70c36f1ed535ef0a612edb33a8bc282d">mpu9250_mag_get_self_test</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, <a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a> *enable)</td></tr>
<tr class="memdesc:ga70c36f1ed535ef0a612edb33a8bc282d"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the self test status  <a href="group__mpu9250__magnetometer__driver.html#ga70c36f1ed535ef0a612edb33a8bc282d">More...</a><br /></td></tr>
<tr class="separator:ga70c36f1ed535ef0a612edb33a8bc282d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga171543445d444086b9a30d46e576cf5b"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga171543445d444086b9a30d46e576cf5b">mpu9250_mag_iic_disable</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga171543445d444086b9a30d46e576cf5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer disable the iic  <a href="group__mpu9250__magnetometer__driver.html#ga171543445d444086b9a30d46e576cf5b">More...</a><br /></td></tr>
<tr class="separator:ga171543445d444086b9a30d46e576cf5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab5cc016141f5d7b4e9a6f9c3913f753e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gab5cc016141f5d7b4e9a6f9c3913f753e">mpu9250_mag_get_asa</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle, uint8_t asa[3])</td></tr>
<tr class="memdesc:gab5cc016141f5d7b4e9a6f9c3913f753e"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer get the asa data  <a href="group__mpu9250__magnetometer__driver.html#gab5cc016141f5d7b4e9a6f9c3913f753e">More...</a><br /></td></tr>
<tr class="separator:gab5cc016141f5d7b4e9a6f9c3913f753e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae87e32f7d9f479e895a96fbb9983be12"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__magnetometer__driver.html#gae87e32f7d9f479e895a96fbb9983be12">mpu9250_mag_set_fifo_mode</a> (<a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *handle)</td></tr>
<tr class="memdesc:gae87e32f7d9f479e895a96fbb9983be12"><td class="mdescLeft">&#160;</td><td class="mdescRight">magnetometer set into fifo mode  <a href="group__mpu9250__magnetometer__driver.html#gae87e32f7d9f479e895a96fbb9983be12">More...</a><br /></td></tr>
<tr class="separator:gae87e32f7d9f479e895a96fbb9983be12"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>mpu9250 magnetometer driver modules </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga0735dd84695bb69fc8c86da464446787"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0735dd84695bb69fc8c86da464446787">&#9670;&nbsp;</a></span>mpu9250_magnetometer_bits_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__mpu9250__magnetometer__driver.html#ga0735dd84695bb69fc8c86da464446787">mpu9250_magnetometer_bits_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mpu9250 magnetometer bits enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga0735dd84695bb69fc8c86da464446787aaa0c3025497a0017bfd9f40406e7bbdc"></a>MPU9250_MAGNETOMETER_BITS_14&#160;</td><td class="fielddoc"><p>14 bits output </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0735dd84695bb69fc8c86da464446787a10eb45e0ae3df11d823b788c1ee67c9f"></a>MPU9250_MAGNETOMETER_BITS_16&#160;</td><td class="fielddoc"><p>16 bits output </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8h_source.html#l00425">425</a> of file <a class="el" href="driver__mpu9250_8h_source.html">driver_mpu9250.h</a>.</p>

</div>
</div>
<a id="ga96325b0b819243ccbbb2a6e00e798d33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga96325b0b819243ccbbb2a6e00e798d33">&#9670;&nbsp;</a></span>mpu9250_magnetometer_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__mpu9250__magnetometer__driver.html#ga96325b0b819243ccbbb2a6e00e798d33">mpu9250_magnetometer_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mpu9250 magnetometer mode enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga96325b0b819243ccbbb2a6e00e798d33a9a7744306e2ca4e8cec3b82eb8cbfaca"></a>MPU9250_MAGNETOMETER_MODE_POWER_DOWN&#160;</td><td class="fielddoc"><p>power down mode </p>
</td></tr>
<tr><td class="fieldname"><a id="gga96325b0b819243ccbbb2a6e00e798d33a8cb550255b964ba64c96ce5b2be7770b"></a>MPU9250_MAGNETOMETER_MODE_SINGLE&#160;</td><td class="fielddoc"><p>single measurement mode </p>
</td></tr>
<tr><td class="fieldname"><a id="gga96325b0b819243ccbbb2a6e00e798d33a3377a213a5444f94ab24e16e46fa59f9"></a>MPU9250_MAGNETOMETER_MODE_CONTINUOUS1&#160;</td><td class="fielddoc"><p>continuous measurement mode 1 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga96325b0b819243ccbbb2a6e00e798d33ab4ce45f8128199c7cacdd39c8b8a8cd9"></a>MPU9250_MAGNETOMETER_MODE_CONTINUOUS2&#160;</td><td class="fielddoc"><p>continuous measurement mode 2 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga96325b0b819243ccbbb2a6e00e798d33a6a8e96299a7dbd7d14b3766910d23089"></a>MPU9250_MAGNETOMETER_MODE_EXT_TRIGGER&#160;</td><td class="fielddoc"><p>external trigger measurement mode </p>
</td></tr>
<tr><td class="fieldname"><a id="gga96325b0b819243ccbbb2a6e00e798d33a689e36d1c458fa70d38941ccabd2aefc"></a>MPU9250_MAGNETOMETER_MODE_SELF_TEST&#160;</td><td class="fielddoc"><p>self test mode </p>
</td></tr>
<tr><td class="fieldname"><a id="gga96325b0b819243ccbbb2a6e00e798d33ab176b40f3577ee979a317ce37a34004a"></a>MPU9250_MAGNETOMETER_MODE_FUSE_ROM&#160;</td><td class="fielddoc"><p>fuse rom access mode </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8h_source.html#l00411">411</a> of file <a class="el" href="driver__mpu9250_8h_source.html">driver_mpu9250.h</a>.</p>

</div>
</div>
<a id="gaf25efb8a583c0829cd9bad3f692e7043"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf25efb8a583c0829cd9bad3f692e7043">&#9670;&nbsp;</a></span>mpu9250_magnetometer_status1_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__mpu9250__magnetometer__driver.html#gaf25efb8a583c0829cd9bad3f692e7043">mpu9250_magnetometer_status1_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mpu9250 magnetometer status1 enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaf25efb8a583c0829cd9bad3f692e7043adfb55754dd658b344657053d13743427"></a>MPU9250_MAGNETOMETER_STATUS1_DRDY&#160;</td><td class="fielddoc"><p>data is ready </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf25efb8a583c0829cd9bad3f692e7043ace54b633fd9ad258f13d49d2fe5d8d72"></a>MPU9250_MAGNETOMETER_STATUS1_DOR&#160;</td><td class="fielddoc"><p>data overrun </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8h_source.html#l00393">393</a> of file <a class="el" href="driver__mpu9250_8h_source.html">driver_mpu9250.h</a>.</p>

</div>
</div>
<a id="ga15ae01bcf3243b67110695ca92f39c3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga15ae01bcf3243b67110695ca92f39c3a">&#9670;&nbsp;</a></span>mpu9250_magnetometer_status2_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__mpu9250__magnetometer__driver.html#ga15ae01bcf3243b67110695ca92f39c3a">mpu9250_magnetometer_status2_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mpu9250 magnetometer status2 enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga15ae01bcf3243b67110695ca92f39c3aae496e7185f498c8b2135267dbb216d20"></a>MPU9250_MAGNETOMETER_STATUS2_HOFL&#160;</td><td class="fielddoc"><p>magnetic sensor overflow occurred </p>
</td></tr>
<tr><td class="fieldname"><a id="gga15ae01bcf3243b67110695ca92f39c3aa00d3d86806db7ee1adde5ba94b5329eb"></a>MPU9250_MAGNETOMETER_STATUS2_BITM&#160;</td><td class="fielddoc"><p>0: 14bits / 1: 16bits </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8h_source.html#l00402">402</a> of file <a class="el" href="driver__mpu9250_8h_source.html">driver_mpu9250.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gadfaea459024eaec362f46be757f9a2c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadfaea459024eaec362f46be757f9a2c7">&#9670;&nbsp;</a></span>mpu9250_mag_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_deinit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer deinit </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag deinit failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l04894">4894</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gab5cc016141f5d7b4e9a6f9c3913f753e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab5cc016141f5d7b4e9a6f9c3913f753e">&#9670;&nbsp;</a></span>mpu9250_mag_get_asa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_asa </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>asa</em>[3]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the asa data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*asa</td><td>pointer to an asa buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get asa failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05613">5613</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga785f16eaac2033bd7879bdfdaba43903"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga785f16eaac2033bd7879bdfdaba43903">&#9670;&nbsp;</a></span>mpu9250_mag_get_bits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_bits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga0735dd84695bb69fc8c86da464446787">mpu9250_magnetometer_bits_t</a> *&#160;</td>
          <td class="paramname"><em>bits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the bits </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*bits</td><td>pointer to a magnetometer bits buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get bits failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05334">5334</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gab4157961c9c4f85f85f3fdad74d25862"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab4157961c9c4f85f85f3fdad74d25862">&#9670;&nbsp;</a></span>mpu9250_mag_get_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_info </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>info</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the information </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*info</td><td>pointer to an info buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get info failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05060">5060</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga2ed2dde488c69352119493594b8ad2d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2ed2dde488c69352119493594b8ad2d2">&#9670;&nbsp;</a></span>mpu9250_mag_get_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga96325b0b819243ccbbb2a6e00e798d33">mpu9250_magnetometer_mode_t</a> *&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mode</td><td>pointer to a magnetometer mode buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get mode failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05238">5238</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gaca812f5efc9f4dc62d1c0fab8a3134b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaca812f5efc9f4dc62d1c0fab8a3134b4">&#9670;&nbsp;</a></span>mpu9250_mag_get_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_reset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a> *&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the reset status </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*enable</td><td>pointer to a bool value buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get reset failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05430">5430</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga70c36f1ed535ef0a612edb33a8bc282d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga70c36f1ed535ef0a612edb33a8bc282d">&#9670;&nbsp;</a></span>mpu9250_mag_get_self_test()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_self_test </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a> *&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the self test status </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*enable</td><td>pointer to a bool value buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get self test failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05526">5526</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga04b17cd4e0b7f7ad4ae5df0eba23f6d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga04b17cd4e0b7f7ad4ae5df0eba23f6d3">&#9670;&nbsp;</a></span>mpu9250_mag_get_status1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_status1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the status1 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*status</td><td>pointer to a status1 buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get status1 failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05102">5102</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga0bf56067b23fe3db7e9a564bea77f25d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0bf56067b23fe3db7e9a564bea77f25d">&#9670;&nbsp;</a></span>mpu9250_mag_get_status2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_get_status2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer get the status2 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*status</td><td>pointer to a status2 buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag get status2 failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05144">5144</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga171543445d444086b9a30d46e576cf5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga171543445d444086b9a30d46e576cf5b">&#9670;&nbsp;</a></span>mpu9250_mag_iic_disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_iic_disable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer disable the iic </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag iic disable failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05569">5569</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gade9506fadda07d03d00820dc13c14bc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gade9506fadda07d03d00820dc13c14bc3">&#9670;&nbsp;</a></span>mpu9250_mag_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize the magnetometer of mpu9250 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag init failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 reset failed</li>
<li>5 mag id is invalid</li>
<li>6 spi don't support </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l04742">4742</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gafe236e15933bffd2e9548d7945123008"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafe236e15933bffd2e9548d7945123008">&#9670;&nbsp;</a></span>mpu9250_mag_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>mag_raw</em>[3], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>mag_ut</em>[3]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mag read the data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mag_raw</td><td>pointer to a mag raw data buffer </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mag_ut</td><td>pointer to a converted mag data buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag read failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l04995">4995</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga8b71a9307bd46ebb45ca224e36064790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8b71a9307bd46ebb45ca224e36064790">&#9670;&nbsp;</a></span>mpu9250_mag_set_bits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_set_bits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga0735dd84695bb69fc8c86da464446787">mpu9250_magnetometer_bits_t</a>&#160;</td>
          <td class="paramname"><em>bits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer set the bits </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bits</td><td>magnetometer bits </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag set bits failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05282">5282</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gae87e32f7d9f479e895a96fbb9983be12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae87e32f7d9f479e895a96fbb9983be12">&#9670;&nbsp;</a></span>mpu9250_mag_set_fifo_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_set_fifo_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer set into fifo mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag set fifo mode failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>fifo mode will use slave 0 </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05654">5654</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="ga1087c4f8297965f6286c4597d3435261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1087c4f8297965f6286c4597d3435261">&#9670;&nbsp;</a></span>mpu9250_mag_set_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_set_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__magnetometer__driver.html#ga96325b0b819243ccbbb2a6e00e798d33">mpu9250_magnetometer_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer set the mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>magnetometer mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag set mode failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05186">5186</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gaab0426a6cea05ed0454aa52a5f8abe00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaab0426a6cea05ed0454aa52a5f8abe00">&#9670;&nbsp;</a></span>mpu9250_mag_set_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_set_reset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer enable or disable reset </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag set reset failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05378">5378</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
<a id="gaf14b2025551ce8ea46c8e61ee987623a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf14b2025551ce8ea46c8e61ee987623a">&#9670;&nbsp;</a></span>mpu9250_mag_set_self_test()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_mag_set_self_test </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga92e41973387b33248aba649fd90e9fac">mpu9250_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__mpu9250__basic__driver.html#ga80d5162f5e92390d0310dbfd8c2b1fd4">mpu9250_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>magnetometer enable or disable self test </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an mpu9250 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 mag set self test failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 mag is not inited </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250_8c_source.html#l05474">5474</a> of file <a class="el" href="driver__mpu9250_8c_source.html">driver_mpu9250.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
